package com.itheima.endTest2;

import java.util.ArrayList;
import java.util.Scanner;

public class DemoClass {
    public static void main(String[] args) {

        ArrayList<Integer> list = new ArrayList<>();
        Scanner scanner = new Scanner(System.in);
        String str = scanner.nextLine();
        byte[] bytes = str.getBytes();
        for (byte aByte : bytes) {
            list.add((int)aByte);
        }

        System.out.println(list);
    }
    private void run(String name) {
        System.out.println(name + "welcome to heima!");
        ArrayList<Integer> list = new ArrayList<>();
        Scanner scanner = new Scanner(System.in);
        String str = scanner.nextLine();
        byte[] bytes = str.getBytes();
        for (byte aByte : bytes) {
            list.add((int)aByte);
        }

        System.out.println(list);
    }
}
